Stack
Methoden
Stack()
Konstruktor
boolean isEmpty()
Gibt zurück ob der Stack leer ist
void push(ContentType pContent)
pContent wird Oben auf den Stapel gelegt
void pop()
Das oberste Objekt wird von Stapel entfernt
ContentType top()
Gibt das Oberste Objekt zurück
Stack<String> stapel = new Stack<>();
stapel.push("Amin");
stapel.push("Ilias");
stapel.push("Youdiy");
stapel.push("Bedo");
stapel.pop();
stapel.pop();
//stapel.isEmpty() -> false
//stapel.top() -> Ilias